package com.wykj;


import ch.qos.logback.classic.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * Created by Administrator on 2017/4/29.
 * 修改启动类，继承 SpringBootServletInitializer 并重写 configure 方法
 * @author GCH
 */
public class SpringBootStartApplication extends SpringBootServletInitializer {
    private static final Logger logger = (Logger) LoggerFactory.getLogger(SpringBootStartApplication.class);
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }
}
